package com.navinfo.platform.dataanalysis.dto.condition;

import com.navinfo.platform.common.dto.DataInfo;
import lombok.Data;

@Data
public class LrCondition extends AbstractCondition {
    @Override
    public boolean subCondition(DataInfo dataInfo, Object... externalParam) {
        int rotation = dataInfo.getRotation();
        int accelerator = dataInfo.getAccPedalPos();
        return accelerator > Integer.parseInt(param[0]) && rotation < Integer.parseInt(param[1]);
    }
}
